﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchDiscount.aspx.cs" Inherits="ReconUI.SearchDiscount" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>Search Discount</title>
    <link href="Main.css" rel="stylesheet" type="text/css" />
    <link href="css/Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
   <div class="page">
    <form id="form1" runat="server" >
     <div  style="width:60%">
    <table cellspacing="1" cellpadding="1" border="0" width = "60%">
        <tr>
        <td align="right">
            Search on Discount Code:
        </td>
        <td>
            <asp:TextBox ID="txtDisc" runat="server" Width="350px" ></asp:TextBox>
            &nbsp; &nbsp;
            <asp:Button ID="btnsearch" runat="server" OnClick="btnsearch_Click" Text="Search" TabIndex="1" /></td>
        </tr>
         <tr>
            <td colspan="2">
                <asp:Label ID="lblDisccnt" runat="server" Width="563px" CssClass="lable"></asp:Label></td>
        </tr>
        <tr>
            <td align="center" colspan="2">
        <div style="height:380px; width:650px; overflow:auto;">
        <asp:GridView ID="gvDisc" runat="server"  
         OnSelectedIndexChanged="gvDisc_SelectedIndexChanged" Width="100%"  AutoGenerateColumns="False" TabIndex="2" 
         HeaderStyle-BackColor="#222222" HeaderStyle-ForeColor="#6f788f" ForeColor="#333333" HeaderStyle-Font-Bold="false">
            <Columns>
               <asp:TemplateField HeaderText="Discount Code" ShowHeader="False">
                   <ItemTemplate>
                       <asp:LinkButton ID="lbtnDisc_Code" runat="server" CausesValidation="False" CommandName="Select"
                           Text='<%# Eval("Discount_Code") %>'></asp:LinkButton>
                   </ItemTemplate>
               </asp:TemplateField>
                         
            <asp:TemplateField HeaderText="Effective Date">                                   
                <ItemTemplate>
                    <asp:Label ID="lblEffective_Date" runat="server" Text='<%# Eval("Effective_Date") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Days Start">                                   
                <ItemTemplate>
                    <asp:Label ID="lblDays_Start" runat="server" Text='<%# Eval("Days_Start") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>  
            <asp:TemplateField HeaderText="Days End">                                   
                <ItemTemplate>
                    <asp:Label ID="lblDays_End" runat="server" Text='<%# Eval("Days_End") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>  
            <asp:TemplateField HeaderText="Percentage %">                                   
                <ItemTemplate>
                    <asp:Label ID="lblDiscount_Percentage" runat="server" Text='<%# Eval("Discount_Percentage") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>  
            <asp:TemplateField HeaderText="Min Amount">                                   
                <ItemTemplate>
                    <asp:Label ID="lblMin_Amount" runat="server" Text='<%# Eval("Min_Amount") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField> 
            <asp:TemplateField HeaderText="Max Amount">                                   
                <ItemTemplate>
                    <asp:Label ID="lblMax_Amount" runat="server" Text='<%# Eval("Max_Amount") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>           
            </Columns>
            <HeaderStyle BackColor="silver" Font-Bold="false" ForeColor="#6f788f"/>
        </asp:GridView>
        </div>
            </td>
        </tr>
    </table>
    </div>
        <input id="control" runat="server" name="control" type="hidden" />
        <input id="path" runat="server" name="path" type="hidden" />


   
    </form>
 </div>
</body>
</html>
